package com.jade.zsy.sal.enity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

/**
 * description:销售订单
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/6/3
 * Time: 13:55
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "ZSY_SAL_SO")
public class SO extends IdEntity {
    @Column(name = "orgId", nullable = false,updatable = true,length = 100)
    private long orgId=0;//部门编号
    @Column(name = "recordNo", updatable = false, nullable = false, length = 100)
    private String recordNo; /** 单据编号 **/
    @Column(name = "recordDate", updatable = true, nullable = false, length = 25)
    private String recordDate; /** 单据日期 **/
    @Column(name = "salesType", updatable = true, nullable = true, length = 25)
    private String salesType;/** 销售类型 **/
    @Column(name = "partnerId", updatable = true, nullable = false)
    private long partnerId;/** 客户编号 **/
    @Column(name = "partnerName", updatable = true, nullable = false, length = 50)
    private String partnerName;/** 客户名称 **/
    @Column(name = "phone", updatable = true, nullable = true, length = 25)
    private String phone;/** 客户联系人手机 **/
    @Column(name = "tel", updatable = true, nullable = true, length = 25)
    private String tel;/** 客户联系人电话 **/
    @Column(name = "fax", updatable = true, nullable = true, length = 25)
    private String fax;/** 客户联系人传真 **/
    @Column(name = "person", updatable = true, nullable = true, length = 25)
    private String person;/** 客户联系人姓名 **/
    @Column(name = "email", updatable = true, nullable = true, length = 25)
    private String email;/** 客户联系人邮箱 **/
    @Column(name = "address", updatable = true, nullable = true, length = 255)
    private String address;/** 客户联系人地址 **/
    @Column(name = "deliver_name", nullable = true, length = 128)
    private String deliverName;/** 收货方名称 **/
    @Column(name="deliverMobile", updatable = true, nullable = false)
    private String deliverMobile;/** 收货方手机 **/
    @Column(name="deliverTel", updatable = true, nullable = false)
    private String deliverTel;/** 收货人电话 **/
    @Column(name="deliverAddress", updatable = true, nullable = false)
    private String deliverAddress;/** 收货人地址 **/
    @Column(name = "totalQty", updatable = true, nullable = false)
    private double totalQty=00.0;/** 总数量 **/
    @Column(name = "deliveryQty", updatable = true, nullable = false)
    private double deliveryQty=0.0;/** 已经发运数量 **/
    @Column(name = "totalCount", updatable = true, nullable = false)
    private int totalCount=0;/** 总件数 **/
    @Column(name = "totalNetWeight", updatable = true, nullable = false)
    private double totalNetWeight = 0.0;/** 总净重 **/
    @Column(name = "totalGrossWeight", updatable = true, nullable = false)
    private double totalGrossWeight = 0.0;/** 总毛重 **/
    @Column(name = "totalVolume", updatable = true, nullable = false)
    private double totalVolume = 0.0;/** 总体积 **/
    @Column(name = "totalAmount", updatable = true, nullable = false)
    private BigDecimal totalAmount = new BigDecimal(0);/** 总货值 **/
    @Column(name = "status")
    private int status;             /*状态*/
    @Column(name = "userSelf01", updatable = true, nullable = false)
    private String userSelf01;/** 自定义属性1 **/
    @Column(name = "userSelf02", updatable = true, nullable = false)
    private String userSelf02;/** 自定义属性1 **/
    @Column(name = "userSelf03", updatable = true, nullable = false)
    private String userSelf03;/** 自定义属性1 **/
    @Column(name = "userSelf04", updatable = true, nullable = false)
    private String userSelf04;/** 自定义属性1 **/
    @Column(name = "userSelf05", updatable = true, nullable = false)
    private String userSelf05;/** 自定义属性1 **/
    @Column(name = "userSelf06", updatable = true, nullable = false)
    private String userSelf06;/** 自定义属性1 **/
    @Column(name = "userSelf07", updatable = true, nullable = false)
    private String userSelf07;/** 自定义属性1 **/
    @Column(name = "userSelf08", updatable = true, nullable = false)
    private String userSelf08;/** 自定义属性1 **/
    @Column(name = "userSelf09", updatable = true, nullable = false)
    private String userSelf09;/** 自定义属性1 **/
    @Column(name = "userSelf10", updatable = true, nullable = false)
    private String userSelf10;/** 自定义属性1 **/
    @Transient
    private List<SODetail> soDetailList;/*商品详情*/

    public long getOrgId() {
        return orgId;
    }

    public void setOrgId(long orgId) {
        this.orgId = orgId;
    }

    public String getRecordNo() {
        return recordNo;
    }

    public void setRecordNo(String recordNo) {
        this.recordNo = recordNo;
    }

    public String getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(String recordDate) {
        this.recordDate = recordDate;
    }

    public String getSalesType() {
        return salesType;
    }

    public void setSalesType(String salesType) {
        this.salesType = salesType;
    }

    public long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(long partnerId) {
        this.partnerId = partnerId;
    }

    public String getPartnerName() {
        return partnerName;
    }

    public void setPartnerName(String partnerName) {
        this.partnerName = partnerName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDeliverName() {
        return deliverName;
    }

    public void setDeliverName(String deliverName) {
        this.deliverName = deliverName;
    }

    public String getDeliverMobile() {
        return deliverMobile;
    }

    public void setDeliverMobile(String deliverMobile) {
        this.deliverMobile = deliverMobile;
    }

    public String getDeliverTel() {
        return deliverTel;
    }

    public void setDeliverTel(String deliverTel) {
        this.deliverTel = deliverTel;
    }

    public String getDeliverAddress() {
        return deliverAddress;
    }

    public void setDeliverAddress(String deliverAddress) {
        this.deliverAddress = deliverAddress;
    }

    public double getTotalQty() {
        return totalQty;
    }

    public void setTotalQty(double totalQty) {
        this.totalQty = totalQty;
    }

    public double getDeliveryQty() {
        return deliveryQty;
    }

    public void setDeliveryQty(double deliveryQty) {
        this.deliveryQty = deliveryQty;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public double getTotalNetWeight() {
        return totalNetWeight;
    }

    public void setTotalNetWeight(double totalNetWeight) {
        this.totalNetWeight = totalNetWeight;
    }

    public double getTotalGrossWeight() {
        return totalGrossWeight;
    }

    public void setTotalGrossWeight(double totalGrossWeight) {
        this.totalGrossWeight = totalGrossWeight;
    }

    public double getTotalVolume() {
        return totalVolume;
    }

    public void setTotalVolume(double totalVolume) {
        this.totalVolume = totalVolume;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUserSelf01() {
        return userSelf01;
    }

    public void setUserSelf01(String userSelf01) {
        this.userSelf01 = userSelf01;
    }

    public String getUserSelf02() {
        return userSelf02;
    }

    public void setUserSelf02(String userSelf02) {
        this.userSelf02 = userSelf02;
    }

    public String getUserSelf03() {
        return userSelf03;
    }

    public void setUserSelf03(String userSelf03) {
        this.userSelf03 = userSelf03;
    }

    public String getUserSelf04() {
        return userSelf04;
    }

    public void setUserSelf04(String userSelf04) {
        this.userSelf04 = userSelf04;
    }

    public String getUserSelf05() {
        return userSelf05;
    }

    public void setUserSelf05(String userSelf05) {
        this.userSelf05 = userSelf05;
    }

    public String getUserSelf06() {
        return userSelf06;
    }

    public void setUserSelf06(String userSelf06) {
        this.userSelf06 = userSelf06;
    }

    public String getUserSelf07() {
        return userSelf07;
    }

    public void setUserSelf07(String userSelf07) {
        this.userSelf07 = userSelf07;
    }

    public String getUserSelf08() {
        return userSelf08;
    }

    public void setUserSelf08(String userSelf08) {
        this.userSelf08 = userSelf08;
    }

    public String getUserSelf09() {
        return userSelf09;
    }

    public void setUserSelf09(String userSelf09) {
        this.userSelf09 = userSelf09;
    }

    public String getUserSelf10() {
        return userSelf10;
    }

    public void setUserSelf10(String userSelf10) {
        this.userSelf10 = userSelf10;
    }

    public List<SODetail> getSoDetailList() {
        return soDetailList;
    }

    public void setSoDetailList(List<SODetail> soDetailList) {
        this.soDetailList = soDetailList;
    }
}
